import {Ref} from "vue"

const changeOneStatusZero = (current:number[], cb:Function) => {
    const oneBlock = current[0] - 38;
    const twoBlock = current[1] - 19;
    const threeBlock = current[2];
    const fourBlock = current[3] + 19;
    const status = 1;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}

const changeOneStatusOne = (current:number[], cb:Function) => {
    const oneBlock = current[0] + 38;
    const twoBlock = current[1] + 19;
    const threeBlock = current[2];
    const fourBlock = current[3] - 19;
    const status = 0;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}

const changeTowStatusOne = (current:number[], cb:Function) => {
    const oneBlock = current[0] + 2;
    const twoBlock = current[1] + 21;
    const threeBlock = current[2];
    const fourBlock = current[3] + 19;
    const status = 1;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeTowStatusTwo = (current:number[], cb:Function) => {
    const oneBlock = current[0] - 2;
    const twoBlock = current[1] - 21;
    const threeBlock = current[2];
    const fourBlock = current[3] - 19;
    const status = 0;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFourStatusZero = (current:number[], cb:Function) => {
    const oneBlock = current[0] - 39;
    const twoBlock = current[1] - 20;
    const threeBlock = current[2]-1;
    const fourBlock = current[3] +20;
    const status = 1;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFourStatusOne = (current:number[], cb:Function) => {
    const oneBlock = current[0] +21;
    const twoBlock = current[1];
    const threeBlock = current[2]-21;
    const fourBlock = current[3] -2;
    const status = 2;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFourStatusTwo = (current:number[], cb:Function) => {
    const oneBlock = current[0] +20;
    const twoBlock = current[1] +1;
    const threeBlock = current[2]-18;
    const fourBlock = current[3] -39;
    const status = 3;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFourStatusThree = (current:number[], cb:Function) => {
    const oneBlock = current[0] -2;
    const twoBlock = current[1] +19;
    const threeBlock = current[2]+40;
    const fourBlock = current[3] +21;
    const status = 0;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFiveStatusZero = (current:number[], cb:Function) => {
    const oneBlock = current[0] -19;
    const twoBlock = current[1];
    const threeBlock = current[2]+19;
    const fourBlock = current[3] +21;
    const status = 1;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFiveStatusOne = (current:number[], cb:Function) => {
    const oneBlock = current[0] +21;
    const twoBlock = current[1];
    const threeBlock = current[2]-21;
    const fourBlock = current[3] +19;
    const status = 2;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFiveStatusTwo = (current:number[], cb:Function) => {
    const oneBlock = current[0] +19;
    const twoBlock = current[1];
    const threeBlock = current[2]-19;
    const fourBlock = current[3] - 21;
    const status = 3;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
const changeFiveStatusThree = (current:number[], cb:Function) => {
    const oneBlock = current[0] - 21;
    const twoBlock = current[1];
    const threeBlock = current[2]+21;
    const fourBlock = current[3] - 19;
    const status = 0;
    cb([oneBlock,twoBlock,threeBlock,fourBlock],status)
}
export default {
    'one':[changeOneStatusZero,changeOneStatusOne],
    'two':[changeTowStatusOne, changeTowStatusTwo],
    'three':[()=>{}],
    'four':[changeFourStatusZero, changeFourStatusOne, changeFourStatusTwo, changeFourStatusThree],
    'five':[changeFiveStatusZero, changeFiveStatusOne, changeFiveStatusTwo, changeFiveStatusThree]
}